<style>
    #classify-update {
        padding: 20px 25px 25px 0;
    }
</style>
<div class="layui-fluid" id="classify-update">
    <form class="layui-form" action="" lay-filter="classify-update-form">

 <div class="layui-form-item febs-hide">
            <label class="layui-form-label febs-form-item-require">隐藏分类编号：</label>
            <div class="layui-input-block">
                <input type="text" name="billstdNo" data-th-value="${qhbillstdmEntity.billstdNo}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label febs-form-item-require">分类编号：</label>
            <div class="layui-input-block">
                <input type="text" name="billstdNo" minlength="4" maxlength="15" data-th-id="${qhbillstdmEntity.billstdNo}"
                       autocomplete="off" class="layui-input" readonly="readonly"  style="background-color: #cccccc">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label febs-form-item-require">分类名称：</label>
            <div class="layui-input-block">
                <input type="text" name="billstdNm" minlength="2" maxlength="30" data-th-id="${qhbillstdmEntity.billstdNm}"
                       autocomplete="off" class="layui-input" >
            </div>
        </div>

  <!--      <div class="layui-form-item">
            <label class="layui-form-label febs-form-item-require">runPrg：</label>
            <div class="layui-input-block">
                <input type="text" name="runPrg" minlength="4" maxlength="10" data-th-id="${qhbillstdmEntity.runPrg}"
                       autocomplete="off" class="layui-input"  >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label febs-form-item-require">callPrgnm：</label>
            <div class="layui-input-block">
                <input type="text" name="callPrgnm" minlength="4" maxlength="10" data-th-id="${qhbillstdmEntity.callPrgnm}"
                       autocomplete="off" class="layui-input"  >
            </div>
        </div>-->

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注：</label>
            <div class="layui-input-block">
                <textarea name="" maxlength="100" class="layui-textarea" readonly="readonly"> </textarea>
            </div>
        </div>
        <div class="layui-form-item febs-hide">
            <button class="layui-btn" lay-submit="" lay-filter="classify-update-form-submit" id="submit"></button>
        </div>
    </form>
</div>

<script data-th-inline="javascript">
    layui.use(['febs', 'form', 'xmSelect', 'validate'], function () {
        let $ = layui.$,
            febs = layui.febs,
            layer = layui.layer,
            form = layui.form,
            xmSelect = layui.xmSelect,
            qhbillstdmEntity = [[${qhbillstdmEntity}]],
            validate = layui.validate;

        form.verify(validate);
        form.render();

        initUserValue();


        function initUserValue() {
            form.val("classify-update-form", {
                "billstdNo": qhbillstdmEntity.billstdNo,
                "billstdNm": qhbillstdmEntity.billstdNm,
                "runPrg": qhbillstdmEntity.runPrg,
                "callPrgnm": qhbillstdmEntity.callPrgnm
            });
        }

        form.on('submit(classify-update-form-submit)', function (data) {
            if (febs.nativeEqual(data.field, qhbillstdmEntity)) {
                febs.alert.warn('分类数据未作任何修改！');
                return false;
            }
            febs.post(ctx + 'classify/update', data.field, function () {
                layer.closeAll();
                febs.alert.success(qhbillstdmEntity.billstdNm + ' 分类数据修改成功');
                $('#febs-classify').find('#query').click();
            });
            return false;
        });
    });
</script>